package com.eduction.service.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.OrgUserRepository;
import com.eduction.modules.system.entity.OrgUserEntity;
import com.eduction.service.IOrgUserService;

@Service
public class OrgUserServiceImpl implements IOrgUserService{

	@Autowired
	private OrgUserRepository orgUserRepository;
	
	@Override
	public OrgUserEntity getAuthOrgUserByAccount(String account, String type) throws SQLException {
		OrgUserEntity ou = orgUserRepository.getAuthOrgUserByAccount(account, type);
		return ou;
	}

	@Override
	public void saveAuthOrgUserInfo(OrgUserEntity a) {
		orgUserRepository.saveAuthOrgUserInfo(a);
		
	}

}
